package com.lcj.mis.feign;

import com.lcj.common.util.Result;
import com.lcj.mis.controller.form.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "aoch-rule")
public interface RuleServiceApi {
    /**
     * 查询费用、取消、分账规则ById
     * @param form
     * @return
     */
    @PostMapping("/charge/searchAllRuleById")
    public Result searchAllRuleById(RuleIdForm form);

    /**
     * 查询费用规则ById
     * @param form
     * @return
     */
    @PostMapping("/charge/searchChargeRuleById")
    public Result searchChargeRuleById(RuleIdForm form);

    /**
     * 查询取消规则ById
     * @param form
     * @return
     */
    @PostMapping("/cancel/searchCancelRuleById")
    public Result searchCancelRuleById(RuleIdForm form);

    /**
     * 查询分账规则ById
     * @param form
     * @return
     */
    @PostMapping("/profitsharing/searchProfitsharingRuleById")
    public Result searchProfitsharingRuleById(RuleIdForm form);

    @PostMapping("/rule/searchRule")
    public Result searchRule(SearchRuleForm form);

    @PostMapping("/rule/insertRule")
    public Result insertRule(InsertRuleForm form);

    @PostMapping("/rule/updateRule")
    public Result updateRule(UpdateRuleForm form);

    @PostMapping("/rule/deleteRule")
    public Result deleteRule(DeleteRuleForm form);
}